package com.tdkj.model.bbs;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * EjfArchiveReply entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ejf_archive_reply", catalog = "west")
public class EjfArchiveReply implements java.io.Serializable {

	// Fields

	private EjfArchiveReplyId id;

	// Constructors

	/** default constructor */
	public EjfArchiveReply() {
	}

	/** full constructor */
	public EjfArchiveReply(EjfArchiveReplyId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( { @AttributeOverride(name = "replyId", column = @Column(name = "replyID", nullable = false)), @AttributeOverride(name = "topicId", column = @Column(name = "topicID", nullable = false)),
			@AttributeOverride(name = "userId", column = @Column(name = "userID", nullable = false, length = 15)), @AttributeOverride(name = "remoteIp", column = @Column(name = "remoteIP", length = 25)), @AttributeOverride(name = "title", column = @Column(name = "title", length = 100)),
			@AttributeOverride(name = "content", column = @Column(name = "content", nullable = false, length = 16777215)), @AttributeOverride(name = "attaches", column = @Column(name = "attaches")), @AttributeOverride(name = "isHidePost", column = @Column(name = "isHidePost", length = 1)),
			@AttributeOverride(name = "isBest", column = @Column(name = "isBest", length = 1)), @AttributeOverride(name = "state", column = @Column(name = "state", length = 1)), @AttributeOverride(name = "createTime", column = @Column(name = "createTime", length = 19)),
			@AttributeOverride(name = "updateTime", column = @Column(name = "updateTime", nullable = false, length = 19)) })
	public EjfArchiveReplyId getId() {
		return this.id;
	}

	public void setId(EjfArchiveReplyId id) {
		this.id = id;
	}

}